package com.norteksoft.erm.model;

/**
 * 用户附件内容
 * 
 * @hibernate.class table="ERM_USERFILECONTENT" dynamic-insert="true"
 *                  dynamic-update="true"
 * @author Jiffy
 * 
 */

public class UserFileContent extends BaseObject {

	private Long OID = new Long(-1);// OID

	private UserFile userFile;

	private byte[] content;

	/**
	 * @hibernate.id column="OID" type="long"
	 * @hibernate.generator class="foreign"
	 * @hibernate.param name="property" value="userFile"
	 * @return Long
	 */
	public Long getOID() {
		return OID;
	}

	public void setOID(Long oid) {
		OID = oid;
	}

	/**
	 * @hibernate.one-to-one name="USERFILE"
	 *                       class="com.norteksoft.erm.model.UserFile"
	 *                       constrained="true"
	 * @return UserAttachFile
	 */
	public UserFile getUserFile() {
		return userFile;
	}

	public void setUserFile(UserFile userFile) {
		this.userFile = userFile;
	}

	/**
	 * @hibernate.property column="CONTENT"
	 *                     type="org.springframework.orm.hibernate3.support.BlobByteArrayType"
	 * @return byte[]
	 */

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

}
